<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To Remove Hibernate from Power menu # Configuration Type - COMPUTER # Refer: https://www.tenforums.com/tutorials/7445-add-remove-hibernate-power-menu-windows-10-a.html # Note: If the registry changes but is not reflected, the customer should check with Windows support for assistance. #> # PowerShell script to ensure the registry key and value are set $regKeyPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" $valueName = "ShowHibernateOption" $valueData = 0 # Check if the registry key exists if (-not (Test-Path $regKeyPath)) { # Create the registry key if it doesn't exist New-Item -Path $regKeyPath -Force } # Set or create the registry value Set-ItemProperty -Path $regKeyPath -Name $valueName -Value $valueData Write-Host "Hibernate from Power menu was Removed successfully"